import request from '@/utils/request'

// 查询群成员列表
export function listGroupUser(groupId) {
  return request({
    url: '/message/groupUser/list/'+groupId,
    method: 'get',
  })
}

// 查询群成员详细
export function getGroupUser(groupId) {
  return request({
    url: '/message/groupUser/' + groupId,
    method: 'get'
  })
}

// 新增群成员
export function addGroupUser(data) {
  return request({
    url: '/message/groupUser',
    method: 'post',
    data: data
  })
}

// 修改群成员
export function updateGroupUser(data) {
  return request({
    url: '/message/groupUser',
    method: 'put',
    data: data
  })
}

// 删除群成员
export function delGroupUser(groupId) {
  return request({
    url: '/message/groupUser/' + groupId,
    method: 'delete'
  })
}
